#define _CRT_SECURE_NO_WARNINGS 1
#include <iostream>
#include "map.hpp"
#include "set.hpp"
void print1(const Aurora::set<int>& s)
{
	Aurora::set<int>::iterator it = s.begin();
	while (it != s.end())
	{
		//(*it) += 1;
		std::cout << *it << " ";
		++it;
	}
	std::cout << std::endl;
	
}
void test_set()
{
	Aurora::set<int> s;
	s.insert(1);
	s.insert(2);
	s.insert(3);
	s.insert(4);
	Aurora::set<int>::iterator it = s.begin();
	while (it != s.end())
	{
		//(*it) += 1;
		std::cout << *it << " ";
		++it;
	}
	std::cout << std::endl;
	print1(s);
}
void print(const Aurora::map<std::string, std::string>& m)
{
	Aurora::map<std::string, std::string>::const_iterator it = m.begin();
	while (it != m.end())
	{
		//it->first += 'x';
		//it->second += 'x';
		std::cout << it->first << ":" << it->second << std::endl;
		++it;
	}
	std::cout << std::endl;
}
void test_map()
{
	Aurora::map<std::string,std::string> m;
	m.insert({"instre","����"});
	m.insert({"sort","����"});
	m.insert({"left","���"});
	m["left"] = "���,ʣ��";
	m["right"] = "�ұ�";
	m["string"];
	Aurora::map<std::string, std::string>::iterator it = m.begin();
	while (it != m.end())
	{
		//it->first += 'x';
		//it->second += 'x';
		std::cout << it->first << ":" << it->second << std::endl;
		++it;
	}
	std::cout << std::endl;
	//print(m);
}
int main()
{
	//test_set();
	test_map();
	return 0;
}
